#ifndef GAMESCENE_H
#define GAMESCENE_H
#pragma once

#include "cocos2d.h"
using namespace cocos2d;
class IGameControl;
class GameLayer :
	public cocos2d::CCLayer
{
public:
	GameLayer();
	static cocos2d::CCScene* scene();
	virtual bool init();  
	LAYER_NODE_FUNC(GameLayer);

private:
	void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent);
	void ccTouchesEnded(CCSet *pTouches, CCEvent *pEvent);
	void update(cocos2d::ccTime dt);
private:
	IGameControl* m_gameControl;
	static cocos2d::CCScene* m_scene;
	CCTMXLayer* m_gameLayer;
	CCTMXTiledMap* m_gameWorld;
};
#endif